﻿using DeZhen.DataCollection.Model.Common;
using DeZhen.DataCollection.Model.Enums;
using SqlSugar;
using System;

namespace DeZhen.DataCollection.Model.Entities
{
    /// <summary>
    /// 采集业务明细表
    /// </summary>
    [SugarTable(TableName = "collection_template_detail", TableDescription = "采集业务明细表")]
    public class CollectionTemplateDetail : BaseEntity
    {
        /// <summary>
        /// 采集业务主表id，关联collection_template表id字段
        /// </summary>
        [SugarColumn(ColumnName = "collection_template_id", ColumnDescription = "采集业务主表id，关联collection_template表id字段")]
        public long CollectionTemplateId { get; set; }

        /// <summary>
        /// 采集字段名
        /// </summary>
        [SugarColumn(ColumnName = "column_name", ColumnDescription = "采集字段名")]
        public string? ColumnName { get; set; }

        /// <summary>
        /// 采集字段中文名
        /// </summary>
        [SugarColumn(ColumnName = "column_cn_name", ColumnDescription = "采集字段中文名")]
        public string? ColumnCnName { get; set; }

        /// <summary>
        /// 采集字段类型：0未知，1患者身份证，2医生身份证，3日期字段
        /// </summary>
        [SugarColumn(ColumnName = "column_type", ColumnDescription = "采集字段类型：0未知，1患者身份证，2医生身份证，3日期字段")]
        public BusinessColumnType ColumnType { get; set; }
    }
}
